<?php 
/* SVN FILE: $Id$ */
/* Aco Test cases generated on: 2009-12-31 02:35:50 : 1262226950*/
App::import('Model', 'Aco');

class AcoTestCase extends CakeTestCase {
	var $Aco = null;
	var $fixtures = array('app.aco');

	function startTest() {
		$this->Aco =& ClassRegistry::init('Aco');
	}

	function testAcoInstance() {
		$this->assertTrue(is_a($this->Aco, 'Aco'));
	}

	function testAcoFind() {
		$this->Aco->recursive = -1;
		$results = $this->Aco->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Aco' => array(
			'id'  => 1,
			'parent_id'  => 1,
			'model'  => 'Lorem ipsum dolor sit amet',
			'foreign_key'  => 1,
			'alias'  => 'Lorem ipsum dolor sit amet',
			'lft'  => 1,
			'rght'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>